package decorate;

/**
 * @description:
 * @author: ywk
 * @date: 2020-08-10
 */
public class Skills implements Hero {
    private Hero hero;

    public Skills(Hero hero) {
        this.hero = hero;
    }

    @Override
    public void learnSkills() {
        if (hero != null) {
            hero.learnSkills();

        }
    }
}
